import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import "default-passive-events";
// 公共样式
import "@/styles/iconfont.css";
import "@/styles/reset.css";
import "@/styles/reset.scss";
import "@/styles/common.scss";
// ant-design-vue Icon
import { Icon, Badge, Progress } from "ant-design-vue";
Vue.component("a-icon", Icon);
Vue.component("a-badge", Badge);
Vue.component("a-progress", Progress);
// ElementUI
import elementUI from "element-ui";
import "@/styles/theme/index.css";
Vue.use(elementUI, { size: "small" });
// ElementPlugin
import ElementPlugin from "@/components/ElementPlugin";
Vue.use(ElementPlugin);
// 面包屑组件
import BreadCrumb from "@/components/BreadCrumb";
Vue.component("bread-crumb", BreadCrumb);
import { Message } from "element-ui";
Vue.prototype.$message = Message;
// dayjs
import dayjs from "dayjs";
Vue.prototype.$dayjs = dayjs;
// utils
import utils from "@/utils";
Vue.prototype.$utils = utils;
// 系统名称继承环境变量
Vue.prototype.$titles = JSON.parse(process.env.VUE_APP_TITLES);
Vue.prototype.$baseUrl = process.env.VUE_APP_SERVERURL;
// 添加v-draggable指令
import DlgDraggable from "vue-element-dialog-draggable";
Vue.use(DlgDraggable, {
  containment: true
});
Vue.config.productionTip = false;

window.rootVue = new Vue({
  data: {
    busy: false
  },
  router,
  store,
  render: h => h(App)
}).$mount("#app");
